package com.aa.activity;



import com.aa.R;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;

public class AddAPlainActivity extends Activity {

	private String TAG = "AddAPlainActivity";
	private TextView mtvPlainMsg;
	private TextView mtvApplyNumber;
	private Button mbtnApply;
	private Button mbtnTitileBack;
	private TextView mtvTitileCenter;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		
		super.onCreate(savedInstanceState);
		setContentView(R.layout.add_a_plain);
		initView();
		initListener();
	}
	
	private void initView(){
		mtvPlainMsg = (TextView)findViewById(R.id.tv_plain_msg);
		mtvApplyNumber = (TextView)findViewById(R.id.tv_apply_number);
		mbtnApply = (Button)findViewById(R.id.btn_apply);
		mbtnTitileBack = (Button)findViewById(R.id.btn_title_back);
		
		
		mtvTitileCenter = (TextView)findViewById(R.id.tv_title_center);
		mtvTitileCenter.setText(R.string.add_a_plan);
	}
	
	private void initListener(){
		mbtnTitileBack.setOnClickListener(new OnAddPlainClickListener());
		mbtnApply.setOnClickListener(new OnAddPlainClickListener());
	}
	
	private class OnAddPlainClickListener implements OnClickListener{

		@Override
		public void onClick(View v) {
			
			switch (v.getId()) {
			case R.id.btn_title_back:
				finish();
				break;

			case R.id.btn_apply:
				break;
			}
		}
		
	}

}
